package com.yang.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.yang.model.User;

@Mapper
public interface UserDao {

	@Select("select * from user where loginacct=#{loginacct} and loginpwd =#{loginpwd}")
	User selectByUser(User user);

	List<User> queryUsers(Map<String, Object> map);
	
	List<User> queryAllUsers(Map<String, Object> map);

	void insertUser(User user);

	User queryUserById(Integer userId);

	void updateUser(User user);

	void deleteUser(Integer userId);

	void deleteUsers(Integer[] userIds);

	void InsertRoles(Map<String, Object> param);

	void deleteRoles(Map<String, Object> param);
}
